<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!DOCTYPE html>
<html>
  
  <head>
    <meta charset="UTF-8">
    <title>客户价值列表</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/font.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/static/css/xadmin.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/static/js/xadmin.js"></script>
    <script charset="utf-8" language="javascript" type="text/javascript" src="JS/CommonFields/common.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  
  <body>
    <div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="">首页</a>
        <a href="">客户订单</a>
        <a>
          <cite>客户历史订单</cite></a>
      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
    </div>
<%--根据条件搜索--%>
    <div class="x-body">
      <hr class="layui-border-black">
      <xblock class="do-table">
        客户历史订单列表
      </xblock>
<%--      <table id="data" lay-filter="empl"></table>--%>
        <table id="data" lay-filter="orderlist"></table>
    </div>
    <script>
      var table;
      layui.use(['table'], function(){
        table = layui.table;

        table.render({
          elem: '#data'
          ,height: 600
          ,url: '${pageContext.request.contextPath}/customer/orderlist/data' //数据接口
          ,method: "post"
          ,page: true //开启分页
          ,cols: [[ //表头
            {type:'checkbox', fixed: 'left'}
            ,{field: 'customerId', title: '顾客ID', width:'10%', sort: true}
            ,{field: 'customerName', title: '顾客姓名', width:'10%', sort: true}
            ,{field: 'orderId', title: '订单ID', width:'10%'}
            ,{field: 'goods', title: '商品', width:'20%'}
            ,{field: 'orderPrice', title: '订单价格', width:'10%'}
            ,{field: 'orderTime', title: '订单时间', width:'20%'}
            ,{field: 'status', title: '订单状态', width:'10%'}
          ]]
        });
      });
    </script>



  </body>

</html>